<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>算数运算符</title>
</head>

<body>
    <script>
        let a = -5,
            b = 0;
        console.log(a / b);
        let c = 10;
        console.log(++c);
        console.log(c++);
        console.log(c);

        console.log(--c);
        console.log(c--);
        console.log(-c);
        console.log(+"5");
        console.log(2 ** 5);
        console.log("位运算")
        console.log(3 & 4);
        console.log(7 & 4);
        console.log(4 | 3);
        console.log(4 | 7);
        console.log(~4);
        let x = 3;
        console.log(3 << 1);
        console.log(3 << 2);
        console.log(3 << 3);
        let y = 32;
        console.log(y >> 1);
        console.log(y >> 2);
        console.log(y >> 5);
        console.log(y >> 6);
    </script>
</body>

</html>